package com.vanke.recyclerview;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * 文 件 名: PullToRefreshAdapter
 * 创 建 人: Allen
 * 创建日期: 16/12/24 19:55
 * 邮   箱: AllenCoder@126.com
 * 修改时间：
 * 修改备注：
 */
public class PullToRefreshAdapter extends BaseQuickAdapter<DateBean, BaseViewHolder> {

    public PullToRefreshAdapter(int layoutResId, List<DateBean> data) {
        super(layoutResId, data);
    }

    public PullToRefreshAdapter(List<DateBean> data) {
        super(R.layout.layout_item,data);
    }

    public PullToRefreshAdapter() {
        super(R.layout.layout_item);
    }
    @Override
    protected void convert(BaseViewHolder helper, DateBean item) {
        helper.addOnClickListener(R.id.tweetText)
              .addOnClickListener(R.id.tweetName)
        .setText(R.id.tweetName,"Hoteis in Rio de Janeiro");
        String msg="\"He was one of Australia's most of distinguished artistes, renowned for his portraits\"";
        ( (TextView)helper.getView(R.id.tweetText)).setText(item.getCount());

    }

}
